package Data;

public class BubbleSort {

  public static void main(String[] args) {
    int num[] = {45,23,64,34,25,53,34,56,43};
    int temp = 0;
    for(int i = 0;i<num.length;i++){
      for (int j = 0;j<num.length-1;j++){
        if(num[j]>num[j+1]){
          temp = num[j];
          num[j]=num[j+1];
          num[j+1]=temp;
        }
      }
    }
    for (int i : num) {
      System.out.print(i+" ");
    }
  }
}
